<?php //echo $this->Html->css('jqueryslidemenu'); ?>
<?php //echo $this->Html->script('admin/jqueryslidemenu'); ?>
<?php if(isset($current_user)&&($current_user['indentify'] == "customer")){ ?>
<!--<div id="nav-right">
    <div class="nav-divider">&nbsp;</div>
    <div class="showhide-account"><?php echo $this->Html->image('user.png',array('style'=>'margin:-5px;width:24px','class'=>'info-tooltip','title'=>'You login as '.$current_user['f_name'].' '.$current_user['l_name'])) ?></div>
    <div class="nav-divider">&nbsp;</div>
    <div class="showhide-account"><?php echo $this->Html->link('Settings',array('controller'=>'customers','action'=>'setting','admin'=>false),array('style'=>'color:#5E350D','onclick'=>"return false;")) ?></div>
    <div class="nav-divider">&nbsp;</div>
    <?php echo $this->Html->link($this->Html->image('../images/logout.png', array('width' => '64', 'height' => '14', 'alt' => '')),array('controller'=>'customers','action'=>'logout','admin'=>false),array('id'=>'logout','escape' => false)) ?>
    <div class="clear">&nbsp;</div>
</div>-->
		
<div id="myslidemenu" class="jqueryslidemenu">
    <ul class="menu">
        <li class="first_item item">
            <?php echo $this->Html->link($this->Html->image('user_red.png',array('style'=>'width:20px')),array('controller'=>'customers','action'=>'index','admin'=>false),array('escape'=>false,'style'=>"background: #FFF;border-radius: 4px;margin-right: 10px;padding: 5px 8px;")); ?>
            <ul>
                <li class="">
                    <?php echo $this->Html->link('Edit Profile',array('controller'=>'customers','action'=>'edit','admin'=>false),array('escape'=>false)) ?>
                </li>
                <li class="">
                    <?php echo $this->Html->link('Change password',array('controller'=>'customers','action'=>'changepass','admin'=>false),array('escape'=>false)) ?>
                </li>
                <li class="">
                    <?php echo $this->Html->link('Logout' ,array('controller'=>'customers','action'=>'logout','admin'=>false),array('id'=>'logout','escape' => false)) ?>
                </li>
            </ul>
        </li> 
        <li class="item">
            <?php echo $this->Html->link('History',"#",array('onclick'=>"return false;",'escape'=>false)) ?>
            <ul>
                <li class="">
                    <?php echo $this->Html->link('Purchase History',array('controller'=>'customers','action'=>'purchase_hystory','admin'=>false) ,array('escape'=>false)) ?>
                </li>
                <li class="">
                    <?php echo $this->Html->link('Transfer History',array('controller'=>'customers','action'=>'transfer_hystory','admin'=>false) ,array('escape'=>false)) ?>
                </li>
            </ul>
        </li>
        <li class="item">
            <?php echo $this->Html->link('Redeem',array('controller'=>'customers','action'=>'redeem','admin'=>false),array('escape'=>false)) ?>
        </li>
        <li class="item">
                <?php echo $this->Html->link('Events',array('controller'=>'events','action'=>'index','admin'=>false),array('escape'=>false)) ?>
        </li>
        <li class="item">
                <?php echo $this->Html->link('Surveys',array('controller'=>'surveys','action'=>'index','admin'=>false),array('escape'=>false)) ?>
        </li>
        <li class="item">
            <?php echo $this->Html->link('My voucher',array('controller'=>'vouchers','action'=>'index','admin'=>false),array('escape'=>false)) ?>
        </li>
        <li class=" last_item item">
            <?php echo $this->Html->link('Support',"#",array('onclick'=>"return false;",'escape'=>false)) ?>
            <ul>
                <li class="">
                      <?php echo $this->Html->link('Submit Tickets',array('controller'=>'tickets','action'=>'enquiry','admin'=>false) ,array('escape'=>false)) ?>
                </li>
                <li class="">
                      <?php echo $this->Html->link('Support',array('controller'=>'tickets','action'=>'help','admin'=>false) ,array('escape'=>false)) ?>
                </li>
            </ul>
        </li>
    </ul>
    <div class="clear"></div>
</div>
<?php }elseif(isset($current_user)&&($current_user['indentify'] == "cashier")){ ?>
<div id="myslidemenu" class="jqueryslidemenu">
    <ul class="menu">
        <li class="first_item item">
            <?php echo $this->Html->link('Home',array('controller'=>'cashiers','action'=>'index','admin'=>false),array('escape'=>false)) ?>
        </li> 
        <li class="item">
          <?php echo $this->Html->link('Sell Gift card/Voucher',array('controller'=>'cashiers','action'=>'sell','admin'=>false),array('escape'=>false)) ?>
        </li>
        <li class="item">
              <?php echo $this->Html->link('Reports',array('controller'=>'cashiers','action'=>'report','admin'=>false),array('escape'=>false)) ?>
        </li>
        
        <li class="item">
            <?php echo $this->Html->link('Change password',array('controller'=>'cashiers','action'=>'changepass','admin'=>false),array('escape'=>false)) ?>
        </li>
        <li class="last_item item">
             <?php echo $this->Html->link('Logout' ,array('controller'=>'cashiers','action'=>'logout','admin'=>false),array('id'=>'logout','escape' => false)) ?>
        </li>
    </ul>
    <div class="clear"></div>
</div>
<?php }else{ ?>
<div id="myslidemenu" class="jqueryslidemenu">
    <ul class="menu">
    <li class="first_item item">
        <?php echo $this->Html->link('Home','/',array('escape'=>false)) ?>
    </li>
    <li class="item">
        <?php echo $this->Html->link('Login',array('controller'=>'customers','action'=>'login','admin'=>false),array('escape'=>false)) ?>
    </li>
    <li class="item">
          <?php echo $this->Html->link('Register',array('controller'=>'customers','action'=>'register','admin'=>false),array('escape'=>false)) ?>
    </li>
    <li class="item">
          <?php echo $this->Html->link('Submit Tickets',array('controller'=>'tickets','action'=>'enquiry','admin'=>false) ,array('escape'=>false)) ?>
    </li>
    <li class="last_item item">
          <?php echo $this->Html->link('Support',array('controller'=>'tickets','action'=>'help','admin'=>false) ,array('escape'=>false)) ?>
    </li>
  </ul>
    <div class="clear"></div>
</div>
<?php } ?>